<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>


 <style>
.rights {
    float: left;
    margin-left: 5px;
    width: 125px;
}
</style>
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
	

            <div class="cont">
                <div class="title_uc"><h3>部门管理</h3></div>               

			<table width="100%" border="0" cellspacing="0">
				<tr>
                    <th style="width:200px;">部门名称</th>
                    <th style="width:150px;">部门电话</th>
                    <th style="width:150px;">部门地址</th>					
                    <th style="width:70px;">操作</th>
                </tr>
				<?php if(empty($address_rs)){?>
					<tr><td class="name" colspan="7">没有保存的信息</td></tr>
				<?php }else{?>
				<?php foreach($address_rs as $val){?>
				<tr class="trcolor">
					<td class="name center"><?php echo $val['department']['name'];?></td>
                    <td class="name"><?php echo $val['department']['telphone'];?></td>
                    <td class="name"><?php echo $val['department']['address'];?></td>					
                    <td class="name"><a href="<?php echo $this->_url('team/department/');?>?address_id=<?php echo $val['department']['id'];?>">修改</a>
					<br /><a href="<?php echo $this->_url('team/deldep/');?>?address_id=<?php echo $val['department']['id'];?>">删除</a>
                    </td>
				</tr>
				<?php }?>
				<?php }?>
			</table>
			
      <form action="<?php echo $this->_url('team/department/');?>?address_id=<?php echo $address_id;?>" method="post" name="form_profile" onsubmit="return checkform();">
       <table id="newAddress" width="100%" border="0" cellspacing="0">
					<tr>
						<th align="left" width="30%">&nbsp;&nbsp;客户管理</th><th width="70%"><span></span></th>
					</tr>
					<tr><td class="textright">部门名称：</td>
						<td align="left"><input type="text" name="data[department][name]" value="<?php echo  $user_info['name'];?>" maxlength="20" /></td></tr>
					<tr><td class="textright">部门电话：</td>
						<td align="left"><input type="text" name="data[department][telphone]" value="<?php echo  $user_info['telphone'];?>" maxlength="20" /></td></tr>
					<tr><td class="textright">部门地址：</td>
						<td align="left"><input type="text" name="data[department][address]" value="<?php echo  $user_info['address'];?>" maxlength="30" /></td></tr>
					<tr><td class="textright">部门主管：</td>
						<td align="left"><input type="text" name="data[department][responsible]" value="<?php echo  $user_info['responsible'];?>" maxlength="20" /></td></tr>
					<tr><td class="textright">部门副主管：</td>
						<td align="left"><input type="text" name="data[department][supervisor]" value="<?php echo  $user_info['supervisor'];?>" maxlength="20" /></td></tr>
					<tr><td class="textright">部门助理：</td>
						<td align="left"><input type="text" name="data[department][assistant]" value="<?php echo  $user_info['assistant'];?>" maxlength="20" /></td></tr>
					<tr><td class="textright">上级领导：</td>
						<td align="left"><input type="text" name="data[department][superior_leadership]" value="<?php echo  $user_info['superior_leadership'];?>" maxlength="20" /></td></tr>
					<tr><td class="textright">分管领导：</td>
						<td align="left"><input type="text" name="data[department][charge_leadership]" value="<?php echo  $user_info['charge_leadership'];?>" maxlength="20" /></td></tr>
					<tr><td class="textright">部门职能：</td>
						<td align="left"><input type="text" name="data[department][ddepartment]" value="<?php echo  $user_info['ddepartment'];?>" maxlength="50" /></td></tr>
					<tr><td class="textright">权限设置：</td>
						<td align="left">
						<font color=red>[注意：选择哪项则表示部门没有该项权限]</font>
						<br/>
                    <?php 
					$rightsarray = explode(",",$user_info['rights']);
                    if(empty($rightsarray)){ $rightsarray = array(); }					
                    ?>					
  		            <li class="rights"><input type="checkbox" value="user/shopinfo" <?php if(in_array('user/shopinfo',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺设置</li>

<li class="rights"><input type="checkbox" value="goods/categorylist" <?php if(in_array('goods/categorylist',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺商品分类</li>
<li class="rights"><input type="checkbox" value="goods/categoryadd" <?php if(in_array('goods/categoryadd',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">添加店铺商品分类</li>
<li class="rights"><input type="checkbox" value="goods/categoryedit" <?php if(in_array('goods/categoryedit',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">修改店铺商品分类</li>
<li class="rights"><input type="checkbox" value="goods/categorydel" <?php if(in_array('goods/categorydel',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">删除店铺商品分类</li>
											
<li class="rights"><input type="checkbox" value="goods/ulist" <?php if(in_array('goods/ulist',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">商品管理</li>
<li class="rights"><input type="checkbox" value="goods/add" <?php if(in_array('goods/add',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">商品添加</li>
<li class="rights"><input type="checkbox" value="goods/edit" <?php if(in_array('goods/edit',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">商品修改</li>
<li class="rights"><input type="checkbox" value="goods/del" <?php if(in_array('goods/del',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">商品删除</li>
<li class="rights"><input type="checkbox" value="goods/gallery" <?php if(in_array('goods/gallery',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">商品滚动图片管理</li>
<li class="rights"><input type="checkbox" value="csv/csvimport" <?php if(in_array('csv/csvimport',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">商品CSV导入</li>
<li class="rights"><input type="checkbox" value="csv/csvexport" <?php if(in_array('csv/csvexport',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">商品CSV导出</li>




<li class="rights"><input type="checkbox" value="usershop/shopmyorder" <?php if(in_array('usershop/shopmyorder',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺收到的订单列表</li>
<li class="rights"><input type="checkbox" value="usershop/shoporderview" <?php if(in_array('usershop/shoporderview',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺订单查看详情</li>
<li class="rights"><input type="checkbox" value="usershop/shoporderdel" <?php if(in_array('usershop/shoporderdel',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺取消订单</li>
<li class="rights"><input type="checkbox" value="pay/surerecevi" <?php if(in_array('pay/surerecevi',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺网银确认发货</li>
<li class="rights"><input type="checkbox" value="usershop/shopsurerecevi" <?php if(in_array('usershop/shopsurerecevi',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺转账确认发货</li>					
					

<li class="rights"><input type="checkbox" value="usershop/shopbackmoney" <?php if(in_array('usershop/shopbackmoney',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺退款</li>
<li class="rights"><input type="checkbox" value="usershop/shopprotectrights" <?php if(in_array('usershop/shopprotectrights',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺查看维权</li>


<li class="rights"><input type="checkbox" value="guestbook/shoplist" <?php if(in_array('guestbook/shoplist',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺留言管理</li>
<li class="rights"><input type="checkbox" value="guestbook/sellerreply" <?php if(in_array('guestbook/sellerreply',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺留言回复及查看</li>					
<li class="rights"><input type="checkbox" value="guestbook/shopdel" <?php if(in_array('guestbook/shopdel',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺留言删除</li>					
		
<li class="rights"><input type="checkbox" value="user/shopnotice" <?php if(in_array('user/shopnotice',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺公告管理</li>
<li class="rights"><input type="checkbox" value="usershop/shoppayment" <?php if(in_array('usershop/shoppayment',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺支付方式列表</li>					
<li class="rights"><input type="checkbox" value="usershop/paymentedit" <?php if(in_array('usershop/paymentedit',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺支付方式配置</li>					
<li class="rights"><input type="checkbox" value="usershop/paymentadd" <?php if(in_array('usershop/paymentadd',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺支付方式安装</li>					
<li class="rights"><input type="checkbox" value="usershop/paymentdel" <?php if(in_array('usershop/paymentdel',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺支付方式卸载</li>					

<li class="rights"><input type="checkbox" value="usershop/orderpriceedit" <?php if(in_array('usershop/orderpriceedit',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">订单价格修改</li>	

<li class="rights"><input type="checkbox" value="usershop/receivlist" <?php if(in_array('usershop/receivlist',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺收款单</li>					
<li class="rights"><input type="checkbox" value="usershop/receivexport" <?php if(in_array('usershop/receivexport',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺收款单导出</li>					

<li class="rights"><input type="checkbox" value="usershop/shippinglist" <?php if(in_array('usershop/shippinglist',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺发货单</li>					
<li class="rights"><input type="checkbox" value="usershop/shippingexport" <?php if(in_array('usershop/shippingexport',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺发货单导出</li>					
<li class="rights"><input type="checkbox" value="usershop/shippingview" <?php if(in_array('usershop/shippingview',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺查看发货单</li>					
<li class="rights"><input type="checkbox" value="usershop/shippingprint" <?php if(in_array('usershop/shippingprint',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺打印发货单</li>					
		
<li class="rights"><input type="checkbox" value="usershop/refundlist" <?php if(in_array('usershop/refundlist',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺退款单</li>					

<li class="rights"><input type="checkbox" value="album/index" <?php if(in_array('album/index',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺添加相片</li>					
<li class="rights"><input type="checkbox" value="album/getalbumcategoryadd" <?php if(in_array('album/getalbumcategoryadd',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺添加相册</li>					

<li class="rights"><input type="checkbox" value="shoparticle/index" <?php if(in_array('shoparticle/index',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺文章管理</li>					
<li class="rights"><input type="checkbox" value="shoparticle/edit" <?php if(in_array('shoparticle/edit',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺文章修改</li>					
<li class="rights"><input type="checkbox" value="shoparticle/add" <?php if(in_array('shoparticle/add',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺文章添加</li>					
<li class="rights"><input type="checkbox" value="shoparticle/del" <?php if(in_array('shoparticle/del',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺文章删除</li>					

<li class="rights"><input type="checkbox" value="shoplinks/index" <?php if(in_array('shoplinks/index',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺友情链接管理</li>					
<li class="rights"><input type="checkbox" value="shoplinks/edit" <?php if(in_array('shoplinks/edit',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺友情链接修改</li>					
<li class="rights"><input type="checkbox" value="shoplinks/add" <?php if(in_array('shoplinks/add',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺友情链接添加</li>					
<li class="rights"><input type="checkbox" value="shoplinks/del" <?php if(in_array('shoplinks/del',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺友情链接删除</li>					

<li class="rights"><input type="checkbox" value="shopjob/index" <?php if(in_array('shopjob/index',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺招聘信息管理</li>					
<li class="rights"><input type="checkbox" value="shopjob/edit" <?php if(in_array('shopjob/edit',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺招聘信息修改</li>					
<li class="rights"><input type="checkbox" value="shopjob/add" <?php if(in_array('shopjob/add',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺招聘信息添加</li>					
<li class="rights"><input type="checkbox" value="shopjob/del" <?php if(in_array('shopjob/del',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺招聘信息删除</li>					

<li class="rights"><input type="checkbox" value="account/ensure" <?php if(in_array('account/ensure',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺保障金管理</li>					
<li class="rights"><input type="checkbox" value="account/editensure" <?php if(in_array('account/editensure',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺保障金取消</li>					
<li class="rights"><input type="checkbox" value="account/delensure" <?php if(in_array('account/delensure',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺保障金退款申请</li>					
<li class="rights"><input type="checkbox" value="account/doensure" <?php if(in_array('account/doensure',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺保障金使用</li>					
		
<li class="rights"><input type="checkbox" value="account/ranklist" <?php if(in_array('account/ranklist',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">会员等级购买列表</li>					
<li class="rights"><input type="checkbox" value="account/dorank" <?php if(in_array('account/dorank',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">会员等级购买</li>							
	
<li class="rights"><input type="checkbox" value="shopcount/index" <?php if(in_array('shopcount/index',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">销售列表</li>					
<li class="rights"><input type="checkbox" value="shopcount/stock" <?php if(in_array('shopcount/stock',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">进货统计图表</li>							
<li class="rights"><input type="checkbox" value="shopcount/sell" <?php if(in_array('shopcount/sell',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">销售统计图表</li>	
	
<li class="rights"><input type="checkbox" value="supplier/index" <?php if(in_array('supplier/index',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺供货商管理</li>					
<li class="rights"><input type="checkbox" value="supplier/dellog" <?php if(in_array('supplier/dellog',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺供货商删除</li>					
<li class="rights"><input type="checkbox" value="supplier/goods" <?php if(in_array('supplier/goods',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺进货管理</li>	
<li class="rights"><input type="checkbox" value="supplier/getgoodsstock" <?php if(in_array('supplier/getgoodsstock',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺进货</li>			
<li class="rights"><input type="checkbox" value="supplier/oldgoodsstock" <?php if(in_array('supplier/oldgoodsstock',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺历史进货管理</li>					


<li class="rights"><input type="checkbox" value="custom/ulist" <?php if(in_array('custom/ulist',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺客户管理</li>					
<li class="rights"><input type="checkbox" value="custom/delcuter" <?php if(in_array('custom/delcuter',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺客户删除</li>	
				
<li class="rights"><input type="checkbox" value="custom/index" <?php if(in_array('custom/index',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺客户等级管理</li>	
<li class="rights"><input type="checkbox" value="custom/dellog" <?php if(in_array('custom/dellog',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]"title="">店铺客户等级删除</li>							

		
					
					<li class="rights"><input type="checkbox" value="team/department" <?php if(in_array('team/department',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]" title="">部门管理</li>	
					<li class="rights"><input type="checkbox" value="team/deldep" <?php if(in_array('team/deldep',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]" title="">部门删除</li>	

					
					<li class="rights"><input type="checkbox" value="team/staff" <?php if(in_array('team/staff',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]" title="">员工管理</li>
					<li class="rights"><input type="checkbox" value="team/delstaff" <?php if(in_array('team/delstaff',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]" title="">员工删除</li>
										
					<li class="rights"><input type="checkbox" value="team/remuneration" <?php if(in_array('team/remuneration',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]" title="">薪酬管理</li>					
					<li class="rights"><input type="checkbox" value="team/delrem" <?php if(in_array('team/delrem',$rightsarray)) { ?>checked="checked"<?php } ?>  name="rights[]" title="">薪酬删除</li>
										
					
					
						</td></tr>										
						
						<input type="hidden" name="data[department][id]" value="<?php echo  isset($user_info['id'])?$user_info['id']:'';?>" />
					<tr><td></td><td><span><input type="submit" name="submit" value="提交订单" /></span></td></tr>
				</table>

		</form>			  
		  
			  
            </div>
	
	

        

    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>
<script language="JavaScript">
<!--
function checkform(){
		return true;
}
//-->
</script>
</body>
</html>